﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace T.E.ERP.Domains.Sales
{
    /// <summary>
    /// 7天交货明细表
    /// </summary>
    public class DeliveryDetail
    {
        /// <summary>
        /// 编号
        /// </summary>
        [Key]
        public int DeliveyId {  get; set; }
        /// <summary>
        /// 合同编号
        /// </summary>
        public string DeliveyNumber { get; set; }
        /// <summary>
        /// 销售订单号
        /// </summary>
        public string DeliveyCode { get; set; }
        /// <summary>
        /// 客户名称
        /// </summary>
        public string CustomerName { get; set; }
        /// <summary>
        /// 销售员
        /// </summary>
        public string Salesperson { get; set; }
        /// <summary>
        /// 单据日期
        /// </summary>
        public DateTime DocumentDate { get; set; }
        /// <summary>
        /// 交货日期
        /// </summary>
        public string DeliveryDate { get; set; }
        /// <summary>
        /// 销售类型
        /// </summary>
        public string SalesType { get; set; }
        /// <summary>
        /// 物料编码(需要与物料表联系)
        /// </summary>
        public string MaterialCode { get; set; }
        /// <summary>
        /// 物料名称
        /// </summary>
        public string MaterialName { get; set; }
        /// <summary>
        /// 订单数量
        /// </summary>
        public int OrderQuantity { get; set; }
        /// <summary>
        /// 发货数量
        /// </summary>
        public int ShippedQuantity { get; set; }
        /// <summary>
        /// 未发货数量
        /// </summary>
        public int UnshippedQuantity { get; set; }
        /// <summary>
        /// 出库数量
        /// </summary>
        public int OutboundQuantity { get; set; }
        /// <summary>
        /// 未出库数量
        /// </summary>
        public int UnoutboundQuantity { get; set; }
    }
}
